package com.lt.experiment06.mission01;

/**
 * @author LT
 * @version 1.0
 * @PackageName com.lt.experiment06.mission01
 * @ClassName Property
 * @Description to do
 * @date 2021/11/28 17:14
 */
public class Property implements Panel,Observer{
    private int diamond;
    private int gold;

    @Override
    public void update(String name, String picture, int level, int combat, int exp,int diamond, int gold) {
        this.diamond=diamond;
        this.gold=gold;
        display();
    }


    @Override
    public void display() {
        System.out.println("角色资产:"+" 钻石数："+ this.diamond +" 金币数："+ this.gold);
    }
}
